import service from "@/request/request.js"


// 获取顾客个人信息栏页面
export const GetCustomInfoMessageService = (id) => {
    return service({
        method: 'GET',
        url: '/netshop/customInfo/',
        params: {
            id: id
        }
    })
}

// 顾客编辑个人信息
export const addCustomInfoService = (form, id) => {
    return service({
        method: 'POST',
        url: '/netshop/customInfo/',
        data: {
            ...form,
            id
        }
    })
}

// 修改密码
export const editPasswordService = (form,id) => {
    return service({
        method: 'POST',
        url: '/netshop/editPassword/',
        data: {
            ...form,
            id:id,
        }
    })
}